import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Solution {

        public List<List<Integer>> generate(int numRows) {
            List<List<Integer>> ret = new ArrayList<List<Integer>>();
            for (int i = 0; i < numRows; ++i) {
                List<Integer> row = new ArrayList<Integer>();
                for (int j = 0; j <= i; ++j) {
                    if (j == 0 || j == i) {
                        row.add(1);
                    } else {
                        row.add(ret.get(i - 1).get(j - 1) + ret.get(i - 1).get(j));
                    }
                }
                ret.add(row);
            }
            return ret;
    }
    public static void main(String[] args) {
        int s = 1;
        Solution solution = new Solution();
        Scanner scanner = new Scanner(System.in);
        int tmp = scanner.nextInt();
        List<List<Integer>> rets = new ArrayList<List<Integer>>();
        System.out.println(Arrays.toString(solution.generate(tmp).get(tmp).toArray()));

    }
}
